package vashion.azeroth.core.manager.personal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.dao.PersonalExperienceDao;
import vashion.azeroth.core.personal.pojo.PersonalExperience;

@Service
public class PersonalExperienceManager extends
		BaseManagerImpl<PersonalExperience> {

	@Autowired
	private PersonalExperienceDao personalExperienceDao;

	@Override
	public BaseDao<PersonalExperience> getDao() {
		return personalExperienceDao;
	}

	public PersonalExperience getExperienceByMemberId(
			PersonalExperience experience) {
		return personalExperienceDao.getExperienceByMemberId(experience);
	}

	public int updateByMemberId(PersonalExperience experience) {
		return personalExperienceDao.updateByMemberId(experience);
	}

}
